
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="xm"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/css/adminIndex.css">
<script type="text/javascript">
function doLogin(){
	var loginName = document.getElementById("loginName").value;
	var loginPwd = document.getElementById("loginPwd").value;
	if(loginName=='' || loginPwd==''){
		alert("用户名和密码不能为空");
		return;
	}	
	location.href='<%=request.getContextPath()%>/adminFilter/admin_order?m=updateOrderStatus&orderId='+1;
	location.href='<%=request.getContextPath()%>/admin?m=login&loginName='+loginName+"&loginPwd="+loginPwd;
	alert("通过验证   系统登录成功");
}
function cancle()
{
	location.href='<%=request.getContextPath()%>/';
}

</script>
</head>
<body>
 	<div id="box">
 		<div id="topArea">
 			<h4>光明篮球网站后台管理系统</h4>
 		</div>
 		<div id="mainArea">
 			<div id="left">
 				<img alt="" src="images/adminlogo.jfif" class="leftImg">
 			</div>
 			<div id="right">
 				
 				
 				<table>
 				
 				<tr>
 					<td>
 					<h4>后台管理员登录</h4>
 					</td>
 						
 					
 				</tr>
 				<tr>
 					<td class="td_left">
 						登录账号:
 					</td>
 					<td>
 						 <input  id="loginName">
 					</td>
 				</tr>
 				<tr>
 					<td class="td_left">
 						登录密码:
 					</td>
 					<td>
 						<input type="password" id="loginPwd">
 					</td>
 				</tr>
 				<tr>
 					<td class="td_left2">
 						<button class="loginButton" title="登录按钮" onclick="doLogin()">登录</button>
 					</td>
 					<td class="td_left1">	
                    	<button class="cancleButton" title="取消按钮" onclick="cancle()">取消</button>
 					</td>
 				</tr>			
 			</table>
 				
 			   
		</div>
 		</div>
 		<div id="bottomArea">
 			<h4>版权所有:科技有限公司     负责人:XM</h4>
 		</div>
 		
 	</div>	
</body>
</html>